//
//  DZZAroundCell.m
//  DZZTravel
//
//  Created by xalo on 16/7/15.
//  Copyright © 2016年 Eason. All rights reserved.
//

#import "DZZAroundCell.h"

@implementation DZZAroundCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setCellForModel:(DZZCityAroundModel *)model{
    
    DZZCityAroundModel *del = model;
    
    [self.bigImageView sd_setImageWithURL:[NSURL URLWithString:del.bigImageUrl] placeholderImage:[UIImage imageNamed:@"bs"]];

    self.oldLabel.text = [NSString stringWithFormat:@"¥%@",del.originalPrice.description];
    self.nowLabel.text = [NSString stringWithFormat:@"¥%@",del.price.description];
    
    self.nameLabel.text = [NSString stringWithFormat:@"%@-%@",del.productName,del.productTitleContent];
}

- (void)setCellWithBtnListModel:(DZZBtnListModel *)btn{
    
    DZZBtnListModel *list = btn;
    
    [self.bigImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://cdn5.yaochufa.com/%@",list.bigImageUrl]] placeholderImage:[UIImage imageNamed:@"bs"]];
    
    
    self.oldLabel.text = [NSString stringWithFormat:@"原价:%@",list.originalPrice.description];
    self.nowLabel.text = [NSString stringWithFormat:@"¥%@",list.price.description];
    
    self.nameLabel.text = [NSString stringWithFormat:@"%@-%@",list.productName,list.productTitleContent];
    
    
    
}


@end
